package com.lvmama.pangolin.match.service.impl;

import com.lvmama.pangolin.mybatis.mapper.match.MatchTicketCommodityMapper;
import com.lvmama.pangolin.entity.match.MatchTicketCommodity;
import com.lvmama.pangolin.match.service.MatchTicketCommodityService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.lvmama.pangolin.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * Created by zhoutianqi on 2017/07/25.
 */
@Service
@Transactional
public class MatchTicketCommodityServiceImpl extends AbstractService<MatchTicketCommodity> implements MatchTicketCommodityService {
    @Autowired
    private MatchTicketCommodityMapper matchTicketCommodityMapper;
	@Override
	public List<MatchTicketCommodity> findByGroup(String curremtUserId) {
		return matchTicketCommodityMapper.findByGroup(curremtUserId);
	}
	@Override
	public List<MatchTicketCommodity> findExtraInfo(Map<String,Object> param) {
		// TODO Auto-generated method stub
		return matchTicketCommodityMapper.findExtraInfo(param);
	}
	@Override
	public int distinctCommodityData(String userId) {
		// TODO Auto-generated method stub
		return matchTicketCommodityMapper.distinctCommodityData(userId);
	}
	@Override
	public int batchUpdatelvCommodityId(
			List<MatchTicketCommodity> list)
	{
		return matchTicketCommodityMapper.batchUpdatelvCommodityId(list);
	}

}
